<!--
 * createor: zc
 * email: zc8023zs@163.com
 * create_time: 2020/3/14 13:46:24
 *-->
<template>
  <el-container>
    <el-header>
      会员表详情
    </el-header>
    <el-main>
      <el-form label-width="200px" :inline="true" style="padding:5% 5% 0 5%">
        <el-form-item label="编号：">
          <span>{{formData.id}}</span>
        </el-form-item>
        <el-form-item label="用户名：">
          <span>{{formData.user_name}}</span>
        </el-form-item>
        <el-form-item label="手机号：">
          <span>{{formData.mobile}}</span>
        </el-form-item>
        <el-form-item label="登录密码：">
          <span>{{formData.login_pass}}</span>
        </el-form-item>
        <el-form-item label="1已验证 0未验证(默认)：">
          <span>{{formData.mobile_check}}</span>
        </el-form-item>
        <el-form-item label="邮箱：">
          <span>{{formData.email}}</span>
        </el-form-item>
        <el-form-item label="1已验证 0未验证(默认)：">
          <span>{{formData.email_check}}</span>
        </el-form-item>
        <el-form-item label="可用积分：">
          <span>{{formData.score}}</span>
        </el-form-item>
        <el-form-item label="累计积分：">
          <span>{{formData.score_total}}</span>
        </el-form-item>
        <el-form-item label="账户余额：">
          <span>{{formData.amount}}</span>
        </el-form-item>
        <el-form-item label="余额支付密码：">
          <span>{{formData.pay_pass}}</span>
        </el-form-item>
        <el-form-item label="会员昵称：">
          <span>{{formData.alias}}</span>
        </el-form-item>
        <el-form-item label="0保密(默认) 1男 2女：">
          <span>{{formData.sex}}</span>
        </el-form-item>
        <el-form-item label="生日：">
          <span>{{formData.birthday}}</span>
        </el-form-item>
        <el-form-item label="QQ号：">
          <span>{{formData.qq}}</span>
        </el-form-item>
        <el-form-item label="注册日期：">
          <span>{{formData.reg_date}}</span>
        </el-form-item>
        <el-form-item label="0后台添加(默认)                        1网站                        2APP                        3微信端                        4小程序：">
          <span>{{formData.reg_source}}</span>
        </el-form-item>
        <el-form-item label="管理备注：">
          <span>{{formData.note}}</span>
        </el-form-item>
        <el-form-item label="1正常 0禁用：">
          <span>{{formData.isok}}</span>
        </el-form-item>
        <el-form-item label="头像：">
          <span>{{formData.img_url}}</span>
        </el-form-item>
        <el-form-item label="QQ openid：">
          <span>{{formData.qq_id}}</span>
        </el-form-item>
        <el-form-item label="QQ昵称：">
          <span>{{formData.qq_name}}</span>
        </el-form-item>
        <el-form-item label="：">
          <span>{{formData.qq_img_url}}</span>
        </el-form-item>
        <el-form-item label="微信openid：">
          <span>{{formData.wx_id}}</span>
        </el-form-item>
        <el-form-item label="微信昵称：">
          <span>{{formData.wx_name}}</span>
        </el-form-item>
        <el-form-item label="微信图像地址：">
          <span>{{formData.wx_img_url}}</span>
        </el-form-item>
        <el-form-item label="小程序openid：">
          <span>{{formData.xcx_id}}</span>
        </el-form-item>
        <el-form-item label="用于推送模板消息：">
          <span>{{formData.xcx_formid}}</span>
        </el-form-item>
        <el-form-item label="微信开放平台union_id：">
          <span>{{formData.union_id}}</span>
        </el-form-item>
        <el-form-item label="会员等级：">
          <span>{{formData.grade_id}}</span>
        </el-form-item>
        <el-form-item label="等级开始时间：">
          <span>{{formData.start_time}}</span>
        </el-form-item>
        <el-form-item label="等级到期时间：">
          <span>{{formData.due_time}}</span>
        </el-form-item>
        <el-form-item label="推荐码：">
          <span>{{formData.invite_code}}</span>
        </el-form-item>
        <el-form-item label="上级ID：">
          <span>{{formData.parent_id}}</span>
        </el-form-item>
        <el-form-item label="上上级ID：">
          <span>{{formData.parent_parent_id}}</span>
        </el-form-item>
        <el-form-item label="1普通用户                        2团长                        3区域合伙人：">
          <span>{{formData.user_type}}</span>
        </el-form-item>
        <el-form-item label="是否试用团长/合伙人 0否 1是：">
          <span>{{formData.is_trial}}</span>
        </el-form-item>
        <el-form-item label="运营商ID：">
          <span>{{formData.operator_id}}</span>
        </el-form-item>
        <el-form-item label="自提点：">
          <span>{{formData.self_mention_point}}</span>
        </el-form-item>
        <el-form-item label="团长销售总金额：">
          <span>{{formData.total_sales_amount}}</span>
        </el-form-item>
        <el-form-item label="团队销售总金额：">
          <span>{{formData.team_sales_amount}}</span>
        </el-form-item>
        <el-form-item label="总佣金：">
          <span>{{formData.total_commission}}</span>
        </el-form-item>
        <el-form-item label="可提现佣金：">
          <span>{{formData.available_commission}}</span>
        </el-form-item>
        <el-form-item label="累计已提现佣金：">
          <span>{{formData.used_commission}}</span>
        </el-form-item>
        <el-form-item label="待结算佣金：">
          <span>{{formData.pending_commission}}</span>
        </el-form-item>
        <el-form-item label="冻结佣金：">
          <span>{{formData.freeze_commission}}</span>
        </el-form-item>
        <el-form-item label="可提现金额校验key：">
          <span>{{formData.encrypt_key}}</span>
        </el-form-item>
        <el-form-item label="所属省份：">
          <span>{{formData.province_id}}</span>
        </el-form-item>
        <el-form-item label="团长微信二维码：">
          <span>{{formData.regimental_qr_code}}</span>
        </el-form-item>
        <el-form-item label="团长简介：">
          <span>{{formData.regimental_desc}}</span>
        </el-form-item>
        <el-form-item label="团长图集：">
          <span>{{formData.regimental_atlas}}</span>
        </el-form-item>
        <el-form-item label="最后登录时间：">
          <span>{{formData.last_login_time}}</span>
        </el-form-item>
        <el-form-item label="最后登录IP：">
          <span>{{formData.last_login_ip}}</span>
        </el-form-item>
        <el-form-item label="最后购买时间：">
          <span>{{formData.last_buy_time}}</span>
        </el-form-item>
        <el-form-item label="升级时间：">
          <span>{{formData.up_time}}</span>
        </el-form-item>
        <el-form-item label="是否核销员 0：否，1：：">
          <span>{{formData.is_verificationer}}</span>
        </el-form-item>
        <el-form-item label="是否实名认证 0 否 1是：">
          <span>{{formData.is_authentication}}</span>
        </el-form-item>
        <el-form-item label="主播类型 0非主播 1常驻主播 2临时主播：">
          <span>{{formData.live_player_type}}</span>
        </el-form-item>
        <el-form-item label="是否官方主播0 否 1是：">
          <span>{{formData.is_official_live_player}}</span>
        </el-form-item>
        <el-form-item label="主播状态 0禁用 1启用：">
          <span>{{formData.live_player_status}}</span>
        </el-form-item>
        <el-form-item label="主播昵称，唯一：">
          <span>{{formData.live_player_name}}</span>
        </el-form-item>
        <el-form-item label="主播微信账号：">
          <span>{{formData.live_player_wx_account}}</span>
        </el-form-item>
        <el-form-item label="粉丝数量：">
          <span>{{formData.live_player_fans_num}}</span>
        </el-form-item>
        <el-form-item label="开通时间：">
          <span>{{formData.live_player_open_time}}</span>
        </el-form-item>
        <el-form-item label="直播备注：">
          <span>{{formData.live_player_remarks}}</span>
        </el-form-item>
        <el-form-item label="是否推送十堰会员系统，0否 1是 默认0：">
          <span>{{formData.is_syxhz}}</span>
        </el-form-item>
      </el-form>
    </el-main>
  </el-container>
</template>
<style scoped>
body .app-container .el-container,
body .app-container .el-header,
body .app-container .el-main,
body .el-container,
body .el-header,
body .el-main {
  padding: 0;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}
</style>
<script>
import { Loading } from "element-ui";
import {
  jbr_usersInfo
} from '@/api/project/wmyh/project_wmyh_jbr_users'
export default {
  name: "a_wmyha_jbr_users_info",
  data() {
    return {
      infoLoading: false,
      formData:{
        id: 0, 
        user_name: '', 
        mobile: '', 
        login_pass: '', 
        mobile_check: 0, 
        email: '', 
        email_check: 0, 
        score: 0, 
        score_total: 0, 
        amount: 0.0, 
        pay_pass: '', 
        alias: '', 
        sex: 0, 
        birthday: '2020/8/11 10:52:38', 
        qq: '', 
        reg_date: '2020/8/11 10:52:38', 
        reg_source: 0, 
        note: '', 
        isok: 0, 
        img_url: '', 
        qq_id: '', 
        qq_name: '', 
        qq_img_url: '', 
        wx_id: '', 
        wx_name: '', 
        wx_img_url: '', 
        xcx_id: '', 
        xcx_formid: '', 
        union_id: '', 
        grade_id: 0, 
        start_time: '2020/8/11 10:52:38', 
        due_time: '2020/8/11 10:52:38', 
        invite_code: '', 
        parent_id: 0, 
        parent_parent_id: 0, 
        user_type: 0, 
        is_trial: 0, 
        operator_id: 0, 
        self_mention_point: 0, 
        total_sales_amount: 0.0, 
        team_sales_amount: 0.0, 
        total_commission: 0.0, 
        available_commission: 0.0, 
        used_commission: 0.0, 
        pending_commission: 0.0, 
        freeze_commission: 0.0, 
        encrypt_key: '', 
        province_id: 0, 
        regimental_qr_code: '', 
        regimental_desc: '', 
        regimental_atlas: '', 
        last_login_time: '2020/8/11 10:52:38', 
        last_login_ip: '', 
        last_buy_time: '2020/8/11 10:52:38', 
        up_time: '2020/8/11 10:52:38', 
        is_verificationer: 0, 
        is_authentication: 0, 
        live_player_type: 0, 
        is_official_live_player: 0, 
        live_player_status: 0, 
        live_player_name: '', 
        live_player_wx_account: '', 
        live_player_fans_num: 0, 
        live_player_open_time: '2020/8/11 10:52:38', 
        live_player_remarks: '', 
        is_syxhz: 0, 
      }
    };
  },
  activated() {
    var result = location.search.match(new RegExp("[\?\&]id=([^\&]+)", "i"));
    if(result != null || result.length > 0){
      this.onInfo(result[1]);
    }
  },
  methods: {
    onInfo(id){
      this.infoLoading=true;
      jbr_usersInfo({id:id}).then(r=>{
        this.formData.id = r.dataSingle.id, 
        this.formData.user_name = r.dataSingle.user_name, 
        this.formData.mobile = r.dataSingle.mobile, 
        this.formData.login_pass = r.dataSingle.login_pass, 
        this.formData.mobile_check = r.dataSingle.mobile_check, 
        this.formData.email = r.dataSingle.email, 
        this.formData.email_check = r.dataSingle.email_check, 
        this.formData.score = r.dataSingle.score, 
        this.formData.score_total = r.dataSingle.score_total, 
        this.formData.amount = r.dataSingle.amount, 
        this.formData.pay_pass = r.dataSingle.pay_pass, 
        this.formData.alias = r.dataSingle.alias, 
        this.formData.sex = r.dataSingle.sex, 
        this.formData.birthday = r.dataSingle.birthday, 
        this.formData.qq = r.dataSingle.qq, 
        this.formData.reg_date = r.dataSingle.reg_date, 
        this.formData.reg_source = r.dataSingle.reg_source, 
        this.formData.note = r.dataSingle.note, 
        this.formData.isok = r.dataSingle.isok, 
        this.formData.img_url = r.dataSingle.img_url, 
        this.formData.qq_id = r.dataSingle.qq_id, 
        this.formData.qq_name = r.dataSingle.qq_name, 
        this.formData.qq_img_url = r.dataSingle.qq_img_url, 
        this.formData.wx_id = r.dataSingle.wx_id, 
        this.formData.wx_name = r.dataSingle.wx_name, 
        this.formData.wx_img_url = r.dataSingle.wx_img_url, 
        this.formData.xcx_id = r.dataSingle.xcx_id, 
        this.formData.xcx_formid = r.dataSingle.xcx_formid, 
        this.formData.union_id = r.dataSingle.union_id, 
        this.formData.grade_id = r.dataSingle.grade_id, 
        this.formData.start_time = r.dataSingle.start_time, 
        this.formData.due_time = r.dataSingle.due_time, 
        this.formData.invite_code = r.dataSingle.invite_code, 
        this.formData.parent_id = r.dataSingle.parent_id, 
        this.formData.parent_parent_id = r.dataSingle.parent_parent_id, 
        this.formData.user_type = r.dataSingle.user_type, 
        this.formData.is_trial = r.dataSingle.is_trial, 
        this.formData.operator_id = r.dataSingle.operator_id, 
        this.formData.self_mention_point = r.dataSingle.self_mention_point, 
        this.formData.total_sales_amount = r.dataSingle.total_sales_amount, 
        this.formData.team_sales_amount = r.dataSingle.team_sales_amount, 
        this.formData.total_commission = r.dataSingle.total_commission, 
        this.formData.available_commission = r.dataSingle.available_commission, 
        this.formData.used_commission = r.dataSingle.used_commission, 
        this.formData.pending_commission = r.dataSingle.pending_commission, 
        this.formData.freeze_commission = r.dataSingle.freeze_commission, 
        this.formData.encrypt_key = r.dataSingle.encrypt_key, 
        this.formData.province_id = r.dataSingle.province_id, 
        this.formData.regimental_qr_code = r.dataSingle.regimental_qr_code, 
        this.formData.regimental_desc = r.dataSingle.regimental_desc, 
        this.formData.regimental_atlas = r.dataSingle.regimental_atlas, 
        this.formData.last_login_time = r.dataSingle.last_login_time, 
        this.formData.last_login_ip = r.dataSingle.last_login_ip, 
        this.formData.last_buy_time = r.dataSingle.last_buy_time, 
        this.formData.up_time = r.dataSingle.up_time, 
        this.formData.is_verificationer = r.dataSingle.is_verificationer, 
        this.formData.is_authentication = r.dataSingle.is_authentication, 
        this.formData.live_player_type = r.dataSingle.live_player_type, 
        this.formData.is_official_live_player = r.dataSingle.is_official_live_player, 
        this.formData.live_player_status = r.dataSingle.live_player_status, 
        this.formData.live_player_name = r.dataSingle.live_player_name, 
        this.formData.live_player_wx_account = r.dataSingle.live_player_wx_account, 
        this.formData.live_player_fans_num = r.dataSingle.live_player_fans_num, 
        this.formData.live_player_open_time = r.dataSingle.live_player_open_time, 
        this.formData.live_player_remarks = r.dataSingle.live_player_remarks, 
        this.formData.is_syxhz = r.dataSingle.is_syxhz, 
        this.infoLoading=false;
      }).catch(()=>{
        this.infoLoading=false;
      });
    }
  }
}
</script>
